--[[表深拷贝
]]
function table.deepCopy(source)
	local dest = {}
	for k, v in pairs(source) do
		if type(v) ~= "table" then
			dest[k] = v
		else
			local t1 = table.deepCopy(v)
			dest[k] = t1
		end
	end

	return dest
end

--[[获取表长度
]]
function table.getLength(t)
	local count = 0

	for k, v in pairs(t) do
		count = count + 1
	end

	return count
end

--[[判定表是否为空
]]
function table.isEmpty(t)
	return next(t) == nil
end